<template>
  <w-cell
    :icon="item.pcMeListCover"
    :title="item.name"
    :link="item.url"
    :time="item.strtAndEndTime"
    :describe="item.describe"
    @cellClick="cellClick"
  />
</template>

<script lang="ts">
import WConfig from "@/config";
import WCell from "@/components/pc/Cell/cell_01/index.vue";
import { Component, Vue, Prop } from "vue-property-decorator";
import ProductModel from "@/models/ProductModel";

@Component({
  components: {
    WCell
  }
})
export default class WebWorksCell extends Vue {
  @Prop() item!: ProductModel;

  // 链接点击
  linkClick() {
    window.open(this.item.url);
  }

  // cell 点击
  cellClick() {
    window.open(`${WConfig.pcHtml}#/web/works/detail?id=${this.item._id}`);
  }
}
</script>

<style lang="scss" scoped>
</style>
